15 步:random_choice3时,计算机选择"scissors" 。我们将存储它以确定哪个玩家获胜。

  • 单击逻辑,转到并拖出String Variable
  • 将其放在 if 语句中,位于.Sprite()下方。
  • 将变量名称更改为computer_choice并将值更改为"scissors"

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)